import request from '@/utils/request'
/**
 * 登录
 * @param {*} data
 * @returns
 */
export function loginApi(data) {
  return request({
    url: '/index/login',
    method: 'post',
    data
  })
}
/**
 * 获取用户信息
 * @param {*} token
 * @returns
 */
export function getInfoApi() {
  return request({
    url: '/index/userinfo',
    method: 'post'
  })
}

